<%@ page contentType="text/html" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib  uri="/struts-tags" prefix="s"%>
<h2 class="contentTitle">添加工程</h2>
<div class="pageContent">
    <form method="post"   action="projectmanagement/Engineering_engineeringUpdate" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone)">
    <input type="hidden" name="b_T_Ufp_Engineering.uuid" value="${b_T_Ufp_Engineering.uuid }" />
        <div class="pageFormContent nowrap" layoutH="97">
         	<p>
				<label>工程编号：</label>
				<input type="hidden" id="status" name="b_T_Ufp_Engineering.status"  value="${status}"size="26"/>
				 <input type="text" id="engineeringNum" name="b_T_Ufp_Engineering.engineeringNum"  value="${b_T_Ufp_Engineering.engineeringNum}"size="26"  class="required"/>
			</p>
			<p>
				<label>工程名称：</label>
				<input type="text" id="engineeringName" name="b_T_Ufp_Engineering.engineeringName"  value="${b_T_Ufp_Engineering.engineeringName}"size="26" class="required"/>
			</p>
			<p>
				<label>工程地址：</label>
				 <input type="text" id="engineeringAdress" name="b_T_Ufp_Engineering.engineeringAdress"  value="${b_T_Ufp_Engineering.engineeringAdress}" size="26" />
			</p>
			<p>
				<label>工程类型：</label>
				<s:select label="工程类型" headerKey="0" headerValue="工装" list="#{1:'家装'}" name="b_T_Ufp_Engineering.engineeringType"    cssStyle="width:165px;"/>
				<%--  <input type="text" id="engineeringType" name="b_T_Ufp_Engineering.engineeringType"  value="${b_T_Ufp_Engineering.engineeringType}" size="26" /> --%>
			</p>
				<p>
				<label>客户姓名：</label>
				 <input type="text" id="customerName" name="b_T_Ufp_Engineering.customerName"  value="${b_T_Ufp_Engineering.customerName}"size="26" class="required"/>
			</p>
			<p>
				<label>联系电话：</label>
				<input type="text" id="contactPhone" name="b_T_Ufp_Engineering.contactPhone"  value="${b_T_Ufp_Engineering.contactPhone}" size="26" />
			</p>
			<p>
				<label>户型：</label>
				<input type="text" id="apartment" name="b_T_Ufp_Engineering.apartment"  value="${b_T_Ufp_Engineering.apartment}" size="26" />
			</p>
			<p>
				<label>面积：</label>
				<input type="text" id="area" name="b_T_Ufp_Engineering.area"  value="${b_T_Ufp_Engineering.area}" size="26" />
			</p>
			<p>
				<label>预算时间：</label>
				<input type="text"  id="budgetTime" name="b_T_Ufp_Engineering.budgetTime" value="${b_T_Ufp_Engineering.budgetTime}" class="date" size="23" /><a class="inputDateButton" href="javascript:;">选择</a>
				<%-- <input type="text" id="budgetTime" name="b_T_Ufp_Engineering.budgetTime"  value="${b_T_Ufp_Engineering.budgetTime}" size="26" /> --%>
			</p>
			<p>
				<label>客户类型：</label>
				<s:select label="客户类型" headerKey="签单客户" headerValue="签单客户" list="{'定金客户','意向客户','丢单客户'}" name="b_T_Ufp_Engineering.customerType"    cssStyle="width:165px;"/>
				<%-- <input type="text" id="customerType" name="b_T_Ufp_Engineering.customerType"  value="${b_T_Ufp_Engineering.customerType}" size="26" /> --%>
			</p>
			<p>
				<label>设计师：</label>
				<input type="text" id="designerName" name="b_T_Ufp_Engineering.designerName"  value="${b_T_Ufp_Engineering.designerName}" size="26" class="required" readonly="readonly"/>
			</p>
			<p>
				<label>联系方式：</label>
				<input type="text" id="designerPhone" name="b_T_Ufp_Engineering.designerPhone"  value="${b_T_Ufp_Engineering.designerPhone}" size="26" />
			</p>
			<p>
				<label>工程工长：</label>
				<input type="text" id="foreman" name="b_T_Ufp_Engineering.foreman"  value="${b_T_Ufp_Engineering.foreman}" size="26" />
			</p>
			<p>
				<label>联系方式：</label>
				<input type="text" id="foremanPhone" name="b_T_Ufp_Engineering.foremanPhone"  value="${b_T_Ufp_Engineering.foremanPhone}" size="26" />
			</p>
			<p>
				<label>工程监理：</label>
				<input type="text" id="supervision" name="b_T_Ufp_Engineering.supervision"  value="${b_T_Ufp_Engineering.supervision}" size="26" />
			</p>
			<p>
				<label>联系方式：</label>
				<input type="text" id="supervisionPhone" name="b_T_Ufp_Engineering.supervisionPhone"  value="${b_T_Ufp_Engineering.supervisionPhone}" size="26" />
			</p>
			
			<p>
				<label>是否共享：</label>
				 <s:select label="是否共享" headerKey="0" headerValue="不共享" list="#{1:'共享'}" name="b_T_Ufp_Engineering.isShare"    cssStyle="width:165px;"/>
				<%-- <input type="text" id="isShare" name="b_T_Ufp_Engineering.isShare"  value="${b_T_Ufp_Engineering.isShare}" size="26" /> --%>
			</p>
			<p>
				<label>打折比率：</label>
				<input type="text" id="discount" name="b_T_Ufp_Engineering.discount"  value="${b_T_Ufp_Engineering.discount}" size="26" class="number"/>
			</p>
			<p>
				<label>税金：</label>
				<input type="text" id="taxes" name="b_T_Ufp_Engineering.taxes"  value="${b_T_Ufp_Engineering.taxes}" size="26" class="number"/>
			</p>
			<p>
				<label>管理费比率：</label>
				<input type="text" id="managementFree" name="b_T_Ufp_Engineering.managementFree"  value="${b_T_Ufp_Engineering.managementFree}" size="26" class="number"/>
			</p>
			<p>
				<label>业务员：</label>
				<input type="text" id="salesman" name="b_T_Ufp_Engineering.salesman"  value="${b_T_Ufp_Engineering.salesman}" size="26" />
			</p>
			<p>
				<label>打印显示：</label>
				 <s:select label="打印显示" headerKey="n" headerValue="单价" list="#{'y':'全部'}" name="b_T_Ufp_Engineering.spare"    cssStyle="width:165px;"/>
			</p>
			<c:choose>
			<c:when test="${level == 1}">
			<p>
				<label>价格可修改：</label>
				 <s:select label="价格可修改" headerKey="n" headerValue="不允许" list="#{'y':'允许'}" name="b_T_Ufp_Engineering.status"    cssStyle="width:165px;"/>
			</p>
			<p></p>
			</c:when>
			</c:choose>
			<p>
				<label>附加说明：</label>
				<textarea id="spare" name="b_T_Ufp_Engineering.designerUuid" cols="108" rows="6" >${b_T_Ufp_Engineering.designerUuid}</textarea>
			</p>
       </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit" id="submit1">
                               保存
                            </button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">
                                取消
                            </button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>